# -*- coding: utf-8 -*-
# @Time    : 2021/3/19 17:38
# @Author  : Zhangrenjie
# @Email   : zhangrenjie1998@163.com
# @File    : text_grade.py
# @Software: PyCharm

grade = input("===============成绩评估系统==============\n请输入成绩分数：")
if grade.isdigit():
    grade = int(grade)
    if 0 <= grade <= 100:
        if 85 <= grade <= 100:
            print("您的成绩为优秀")
        elif 60 <= grade < 85:
            print("您的成绩为良好")
        else:
            print("您的成绩为不及格")
    else:
        print("请输入0~100之内的成绩")
else:
    print("您输入的不是数字")

